package com.baidu.mpks.schema.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class UserSchemaProperty extends UserSchema {

    private Integer id;
    @JsonProperty("@id")
    private String atId;
    @JsonProperty("@type")
    private String atType;
    private JsonNode comment;
    private JsonNode label;
    private String domain;
    private String[] range;
    private String[] alias;
    private String constraint;
    private String rule;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date updateTime;
    private String updateBy;
    private String extend;
    private Integer edit;
    private Integer index;
    private Integer weight;
    private String analysis;
    private Integer indexEdit;
    @JsonProperty("enum")
    private List<String> enumValues;
    private String dataType;
    private String defaultValue;
    private List<String> properties;
}
